lib: use msgspec json decoder for requests Session - #24894
Conversation
✅ Deploy Preview for authentik-docs ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #24894 +/- ##
==========================================
+ Coverage 91.41% 91.43% +0.01%
==========================================
Files 1146 1147 +1
Lines 71815 71873 +58
Branches 3875 3875
==========================================
+ Hits 65653 65718 +65
+ Misses 6127 6120 -7
Partials 35 35
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. |
dba51a9 to
4449b43
Compare
|
authentik PR Installation instructions Instructions for docker-composeAdd the following block to your AUTHENTIK_IMAGE=ghcr.io/goauthentik/dev-server
AUTHENTIK_TAG=gh-50ec153a5881eacfb464f2fb71b708ee2f9a70e2
AUTHENTIK_OUTPOSTS__CONTAINER_IMAGE_BASE=ghcr.io/goauthentik/dev-%(type)s:gh-%(build_hash)sAfterwards, run the upgrade commands from the latest release notes. Instructions for KubernetesAdd the following block to your authentik:
outposts:
container_image_base: ghcr.io/goauthentik/dev-%(type)s:gh-%(build_hash)s
global:
image:
repository: ghcr.io/goauthentik/dev-server
tag: gh-50ec153a5881eacfb464f2fb71b708ee2f9a70e2Afterwards, run the upgrade commands from the latest release notes. |
dc0249c to
44ed01c
Compare
4449b43 to
47aa3a6
Compare
44ed01c to
217f373
Compare
1e0370a to
a423dcb
Compare
✅ Deploy Preview for authentik-storybook ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
a423dcb to
dce5a72
Compare
Signed-off-by: Jens Langhammer <jens@goauthentik.io>
dce5a72 to
50ec153
Compare
rissson
left a comment
There was a problem hiding this comment.
Just a small testing thing, otherwise LGTM
| session = get_http_session() | ||
| self.assertIsInstance(session, DebugSession) | ||
| self.assertIsInstance(session.get_adapter("https://goauthentik.io"), MsgspecHTTPAdapter) | ||
| self.assertIsInstance(session.get_adapter("http://goauthentik.io"), MsgspecHTTPAdapter) |
There was a problem hiding this comment.
Any way we could add a test to ensure that the msgspec decoder is used by default? So that in future requests versions, if they start passing args to the json method, we can catch that?
the last one